<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>layui</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<script src="../../../js/angular.js"></script>
<script src="../../../js/angular.js" charset="utf-8"></script>
<link rel="stylesheet" href="../../../layui/css/layui.css" media="all">
<script type="text/javascript" src="../../../layui/lay/modules/layer.js"></script>
<script src="../../../layui/jquery-3.2.1.min.js" charset="utf-8"></script>
<script src="../../../layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="fy.js"></script>
<style>
.layui-form-item{
	height:30px;
}
#menu {
	width: 17%;
	height: 300px;
	float: left;
	border: 0px;
}

#s {
	width: 18%;
	height: 300px;
	float: left;
	border: 0px;
}

#bj {
	top: 10px;
	width: 75%;
	float: left;
}

#div2 {
	top: 10px;
	width: 75%;
	float: left;
}

#div3 {
	top: 10px;
	width: 75%;
	float: left;
}

#xz {
	top: 10px;
	width: 80%;
	float: left;
}

#tj1 {
	width: 50%;
	height: 459px;
	top: 10px;
	float: left;
}

#tj2 {
	width: 30%;
	height: 459px;
	float: left;
}

#hf1 {
	width: 50%;
	height: 300px;
	top: 10px;
	float: left;
}

#hf2 {
	width: 30%;
	height: 300px;
	float: left;
}

.layui-form-label {
	text-align: left;
	width: 130px;
	height: 30px;
}
</style>
</head>
<body>
	<br>
	<div ng-app="myApp" ng-controller="customersCtrl" align="center">
				<loading>查询中请稍后</loading>
		<div id="menu" ng-mouseover="">
			<ul class="layui-nav layui-nav-tree layui-inline"
				style="text-align: left;width: 70%">
				<li class="layui-nav-item" ng-click="hjqcbj()"><a
					href="javascript:;">汇缴清册编辑</a>
				</li>
				<li class="layui-nav-item" ng-click="hjqcxz()"><a
					href="javascript:;">汇缴清册新增</a>
				</li>
				<li class="layui-nav-item" ng-click="tzjc()"><a
					href="javascript:;">人员停止缴存</a>
				</li>
				<li class="layui-nav-item" ng-click="ryhftj()"><a
					href="javascript:;">人员恢复缴存</a></li>
			</ul>
		</div>
		<!-- 邮件发送 -->


		<div id="bj" ng-hide="hjqcbj1">
			姓名：<input type="text" ng-model="xmc" style="width: 20%">
			证件号码：<input type="text" ng-model="zjc" style="width: 20%"> <input
				type="button" ng-click="chaxun()" style="width: 15%"
				value="查&nbsp;&nbsp;&nbsp;&nbsp;询">
			
				<table class="layui-table" style="width:90%">
					<tr align="center" style="background-color:#f1f1f1">
						<td ng-show=false>当前行数</td>
						<td>姓名</td>
						<td>证件号码</td>
						<td>缴存情况</td>
						<td>交至年月</td>
						<td>个人账号</td>
						<td>单位名称</td>
						<td>操作</td>

					</tr>
					<tr ng-repeat="x in names" align="center">
						<td ng-if="$odd" ng-show=false style="background-color:#f1f1f1">{{
							$index+1 }}</td>
						<td ng-if="$even" ng-show=false>{{ $index+1 }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{
							x.XINGMING }}</td>
						<td ng-if="$even">{{ x.XINGMING }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.ZJHM
							}}</td>
						<td ng-if="$even">{{ x.ZJHM }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.JCQK
							}}</td>
						<td ng-if="$even">{{ x.JCQK }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.JZNY
							}}</td>
						<td ng-if="$even">{{ x.JZNY }}</td>
						<td ng-if="$odd" id="grzh" style="background-color:#f1f1f1">{{
							x.GRZH }}</td>
						<td ng-if="$even">{{ x.GRZH }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.DWMC
							}}</td>
						<td ng-if="$even">{{ x.DWMC }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1"><input
							type="button" ng-click="bj111($index)" style="color: red"
							value="&nbsp;编&nbsp;&nbsp;辑&nbsp;">
						</td>
						<td ng-if="$even"><input type="button"
							ng-click="bj111($index)" style="color: red"
							value="&nbsp;编&nbsp;&nbsp;辑&nbsp;">
						</td>
					</tr>
				</table>
			
			<div class="layui-btn-group">
				<button class="layui-btn layui-btn-primary layui-btn-sm"
					ng-click="Sy()">首页</button>
				<button class="layui-btn layui-btn-primary layui-btn-sm"
					ng-click="Previous()">上一页</button>
				<button ng-repeat="page in pageList"
					class="layui-btn layui-btn-primary layui-btn-sm "
					ng-click="selectPage(page)">{{page}}</button>
				<button class="layui-btn layui-btn-primary layui-btn-sm"
					ng-click="Next()">下一页</button>
				<button class="layui-btn layui-btn-primary layui-btn-sm"
					ng-click="Wy()">尾页</button>
				<button class="layui-btn layui-btn-primary layui-btn-sm ">{{selPage}}/{{pages}}</button>
			</div>
		</div>
		<!-- 汇缴清册新增 -->
		<div ng-hide="myVar" id="div2" style="width: 80%">
			<div style="float: left;width: 62%">
				<table class="layui-table">
					<tr align="center" style="background-color:#f1f1f1">
						<td ng-show=false>当前行数</td>
						<td ng-show=false>个人账号</td>
						<td>姓名</td>
						<td>个人账号</td>
						<td>证件号码</td>
						<td>手机号码</td>
						<td>操作</td>
					</tr>
					<tr ng-repeat="x in names1" align="center">
						<td ng-if="$odd" ng-show=false style="background-color:#f1f1f1">{{
							$index+1 }}</td>
						<td ng-if="$even" ng-show=false>{{$index+1 }}</td>
						<td ng-if="$odd" ng-show=false style="background-color:#f1f1f1">{{
							x.GRZH }}</td>
						<td ng-if="$even" ng-show=false>{{ x.GRZH }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{
							x.XINGMING }}</td>
						<td ng-if="$even">{{ x.XINGMING }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.GRZH
							}}</td>
						<td ng-if="$even">{{ x.GRZH }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.ZJHM
							}}</td>
						<td ng-if="$even">{{ x.ZJHM }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.SJHM
							}}</td>
						<td ng-if="$even">{{ x.SJHM }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1"><a
							style="color: red;" ng-click="tzjcbj11($index)" href="#">操作</a>
						</td>
						<td ng-if="$even"><a style="color: red;" href="#"
							ng-click="tzjcbj11($index)">操作</a>
						</td>
					</tr>
				</table>
				<div class="layui-btn-group">
					<button class="layui-btn layui-btn-primary layui-btn-sm"
						ng-click="Sy()">首页</button>
					<button class="layui-btn layui-btn-primary layui-btn-sm"
						ng-click="Previous()">上一页</button>
					<button ng-repeat="page in pageList"
						class="layui-btn layui-btn-primary layui-btn-sm "
						ng-click="selectPage(page)">{{page}}</button>
					<button class="layui-btn layui-btn-primary layui-btn-sm"
						ng-click="Next()">下一页</button>
					<button class="layui-btn layui-btn-primary layui-btn-sm"
						ng-click="Wy()">尾页</button>
					<button class="layui-btn layui-btn-primary layui-btn-sm ">{{selPage}}/{{pages}}</button>
				</div>
			</div>
			<div style="width: 38%;float: right;">
				<form class="layui-form" action="" id="tj2" style="width:100%;">
					<br>
					<br>
					<br>
					<div class="layui-form-item">
						<label class="layui-form-label" style="width: 20%">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名:</label>
						<div class="layui-input-block">
							<input name="XINGMING" id="XINGMINGt" lay-verify="title"
								style="width: 90%" autocomplete="off" class="layui-input"
								type="text">
						</div>
					</div>
					<br>
					<div class="layui-form-item">
						<label class="layui-form-label" style="width: 20%">证件号码:</label>
						<div class="layui-input-block">
							<input name="ZJHM" id="ZJHMt" lay-verify="title"
								style="width: 90%" autocomplete="off" class="layui-input"
								type="text">
						</div>
					</div>
					<br>
					<div class="layui-form-item">
						<label class="layui-form-label" style="width: 20%">个人帐号:</label>
						<div class="layui-input-block">
							<input name="GRZH" id="GRZHt" lay-verify="title"
								style="width: 90%" autocomplete="off" class="layui-input"
								type="text">
						</div>
					</div>
					<br>
					<div class="layui-form-item">
						<label class="layui-form-label" style="width: 20%">停缴年月:</label>
						<div class="layui-input-block">
							<input name="date" id="date1" lay-verify="title"
								style="width: 90%" autocomplete="off" class="layui-input"
								autocomplete="off" type="text" style="width: 15%"
								placeholder="请选择时间">
						</div>
					</div>
					<br>
					<div align="center">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="button" class="layui-btn layui-btn-primary" id="tzjc" ng-click="tzjc111()"
							value="停止缴存">
					</div>
				</form>
			</div>

		</div>

		<div ng-hide="hfjc" id="div3" style="width: 80%">
			<div style="float: left;width: 62%">
				<table class="layui-table" id="table1">
					<tr align="center" style="background-color:#f1f1f1">
						<td ng-show=false>当前行数</td>
						<td>姓名</td>
						<td>个人账号</td>
						<td>证件号码</td>
						<td>手机号码</td>
						<td>操作</td>
					</tr>
					<tr ng-repeat="x in names2" align="center" id="hfjc111">
						<td ng-if="$odd" ng-show=false style="background-color:#f1f1f1">{{
							$index+1 }}</td>
						<td ng-if="$even" ng-show=false>{{$index+1 }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{
							x.XINGMING }}</td>
						<td ng-if="$even">{{ x.XINGMING }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.GRZH
							}}</td>
						<td ng-if="$even">{{ x.GRZH }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.ZJHM
							}}</td>
						<td ng-if="$even">{{ x.ZJHM }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1">{{ x.SJHM
							}}</td>
						<td ng-if="$even">{{ x.SJHM }}</td>
						<td ng-if="$odd" style="background-color:#f1f1f1"><a
							style="color: red;" ng-click="hfjcbj11($index)" href="#">操作</a>
						</td>
						<td ng-if="$even"><a style="color: red;" href="#"
							ng-click="hfjcbj11($index)">操作</a>
						</td>
					</tr>
				</table>
				<div class="layui-btn-group">
					<button class="layui-btn layui-btn-primary layui-btn-sm"
						ng-click="Sy()">首页</button>
					<button class="layui-btn layui-btn-primary layui-btn-sm"
						ng-click="Previous()">上一页</button>
					<button ng-repeat="page in pageList"
						class="layui-btn layui-btn-primary layui-btn-sm "
						ng-click="selectPage(page)">{{page}}</button>
					<button class="layui-btn layui-btn-primary layui-btn-sm"
						ng-click="Next()">下一页</button>
					<button class="layui-btn layui-btn-primary layui-btn-sm"
						ng-click="Wy()">尾页</button>
					<button class="layui-btn layui-btn-primary layui-btn-sm ">{{selPage}}/{{pages2}}</button>
				</div>
			</div>
			<div style="width: 38%;float: right;">
				<form class="layui-form" action="" id="tj2" style="width:100%;">
					<br>
					<br>
					<br>
					<div class="layui-form-item">
						<label class="layui-form-label" style="width: 20%">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名:</label>
						<div class="layui-input-block">
							<input name="XINGMING" id="XINGMINGh" lay-verify="title"
								style="width: 90%" autocomplete="off" class="layui-input"
								type="text">
						</div>
					</div>
					<br>
					<div class="layui-form-item">
						<label class="layui-form-label" style="width: 20%">证件号码:</label>
						<div class="layui-input-block">
							<input name="ZJHM" lay-verify="title" id="ZJHMh"
								style="width: 90%" autocomplete="off" class="layui-input"
								type="text">
						</div>
					</div>
					<br>
					<div class="layui-form-item">
						<label class="layui-form-label" style="width: 20%">个人帐号:</label>
						<div class="layui-input-block">
							<input name="GRZH" lay-verify="title" id="GRZHh"
								style="width: 90%" autocomplete="off" class="layui-input"
								type="text">
						</div>
					</div>
					<br>
					<div class="layui-form-item">
						<label class="layui-form-label" style="width: 20%">恢复年月:</label>
						<div class="layui-input-block">
							<input name="dat" id="date2" lay-verify="title"
								style="width: 90%" autocomplete="off" class="layui-input"
								autocomplete="off" type="text" style="width: 15%"
								placeholder="请选择时间">
						</div>
					</div>
					<br>
					<div align="center">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="button" class="layui-btn layui-btn-primary"
							id="hfjcclick" ng-click="hfjcclick()" value="恢复缴存">
					</div>
				</form>
			</div>

		</div>
		<div ng-hide="bj" style="width: 70%" id="xz">

			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">姓名:</label>
					<div class="layui-input-inline">
						<input type="text" readonly="readonly" ng-model="XINGMINGb"
							id="XINGMING" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">证件号码:</label>
					<div class="layui-input-inline">
						<input type="text" readonly="readonly" ng-model="ZJHMb" id="ZJHM"
							autocomplete="off" class="layui-input">
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">手机号码:</label>
					<div class="layui-input-inline">
						<input type="text" ng-model="SJHMb" id="SJHM" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">个人缴存基数:</label>
					<div class="layui-input-inline">
						<input type="text" readonly="readonly" ng-model="GRJCJSb"
							id="GRJCJS" autocomplete="off" class="layui-input">
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">个人缴存比例:</label>
					<div class="layui-input-inline">
						<input type="text" readonly="readonly" ng-model="GRJCBLb"
							id="GRJCBL" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">单位缴存比例:</label>
					<div class="layui-input-inline">
						<input type="text" readonly="readonly" ng-model="DWJCBLb"
							id="DWJCBL" autocomplete="off" class="layui-input">
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">个人账号:</label>
					<div class="layui-input-inline">
						<input type="text" readonly="readonly" ng-model="GRZHb" id="GRZH"
							autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label"
						style="width: 130px;text-align: left;"> </label>
					<div class="layui-input-inline">
						<input type="button" class="layui-btn layui-btn-primary"
							id="submit" ng-click="submit()"value="确认更改">
					</div>
				</div>
			</div>
		</div>
		<div ng-hide="xz" style="width: 70%" id="xz">
		<div>
				<loading>查询中请稍后</loading>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">姓名:</label>
					<div class="layui-input-inline">
						<input type="text" id="xingming" name="DWZH" id="DWZH"
							autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">证件号码:</label>
					<div class="layui-input-inline">
						<input type="text" id="zjhm" autocomplete="off"
							class="layui-input">
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">单位缴存额:</label>
					<div class="layui-input-inline">
						<input type="text" id="dwjce" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">个人缴存额:</label>
					<div class="layui-input-inline">
						<input type="text" id="grjce" autocomplete="off"
							class="layui-input">
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">缴存开始年月:</label>
					<div class="layui-input-inline">
						<input type="text" id="jcksny" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">手机号码:</label>
					<div class="layui-input-inline">
						<input type="text" id="sjhm" autocomplete="off"
							class="layui-input">
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">单位邮箱:</label>
					<div class="layui-input-inline">
						<input type="text" id="dwyx" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">家庭月收入:</label>
					<div class="layui-input-inline">
						<input type="text" id="jtysr" autocomplete="off"
							class="layui-input">
					</div>
				</div>
			</div>

			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">家庭住址:</label>
					<div class="layui-input-inline">
						<input type="text" id="jtzz" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">经办人固定电话号码:</label>
					<div class="layui-input-inline">
						<input type="text" id="gddhhm" autocomplete="off"
							class="layui-input">
					</div>
				</div>


				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">学历:</label>
						<div class="layui-input-inline">
							<select class="layui-input" id="xl">
								<option ng-repeat="d in data9" value="{{d.DM}}">{{d.XL}}</option>
							</select>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">证件类型:</label>
						<div class="layui-input-inline">
							<select class="layui-input" id="zjlx">
								<option value="01">身份证</option>
								<option value="02">军官证</option>
								<option value="03">护照</option>
								<option value="04">外国人永久居住证</option>
								<option value="99">其他</option>
							</select>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">婚姻状况:</label>
						<div class="layui-input-inline">
							<select class="layui-input" id="hyzk">
								<option ng-repeat="d in data5" value="{{d.DM}}">{{d.HYZK}}</option>
							</select>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">职业:</label>
						<div class="layui-input-inline">
							<select class="layui-input" id="zy">
								<option ng-repeat="d in data6" value="{{d.DM}}">{{d.ZY}}</option>
							</select>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">职称:</label>
						<div class="layui-input-inline">
							<select class="layui-input" id="zc">
								<option ng-repeat="d in data7" value="{{d.DM}}">{{d.ZC}}</option>
							</select>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">职务:</label>
						<div class="layui-input-inline">
							<select class="layui-input" id="zw">
								<option ng-repeat="d in data8" value="{{d.DM}}">{{d.ZW}}</option>
							</select>
						</div>
					</div>
				</div>

				<br>
				<div align="center">
					<br> <input type="button" class="layui-btn layui-btn-primary"
						id="hjxznr" ng-click="hjxznr()" value="确认添加">
				</div>
			</div>
		</div>
		</div>
		</div>
	
	<script type="text/javascript">
	 //查询

		function getPath() {
			return 'http://' + location.host;
		};
		var a;
		var app = angular.module('myApp', []);
		 app.directive('loading', function(){  
		        return {  
		            restrict: 'E',  
		            transclude: true,  
		            template: '<div ng-show="loading" class="loading" id="allDiv"  style="position:fixed; top:0px; left:0px; width:100%; height:100%; display:none; background-color:#000; opacity: 0.5; z-index:99999;">'  
		            +'<img alt="" src="../../../layui/img/jz.gif" style="vertical-align: middle;width:30px; height:30px; position: absolute; top:50%; left:50%; margin-top: -50px; margin-left:-50px;"/>'
		            +'</div>',  
		            link: function (scope, element, attr) {  
		                scope.$watch('loading', function (val) {  
		                    if (val){  
		                        document.getElementById("allDiv").style.display = "block";  
		                    }else{  
		                        document.getElementById("allDiv").style.display = 'none';  
		  
		                    }  
		                });  
		            }  
		        };
		    }); 
		    
		     
		    app.controller('customersCtrl', function($scope, $http) {
		    $("#tj2 input[type='text']").attr("readonly","readonly");
		    $("#tj2 input[type='text']").attr("readonly","readonly");
		     $scope.setLoading =function(){  
			    if($scope.loading ==undefined || $scope.loading ==false){  
			        $scope.loading=true;  
			    }else{  
			        $scope.loading=false;  
			    };
			};
			
			$scope.tzjc111=function() {
			
			var x=$("#XINGMINGt").val();
			var z=$("#ZJHMt").val();
			var g=$("#GRZHt").val();
			var t=$("#date1").val();
			if(x!="" && x!=null && z!=null && z!="" && g!=null && g!="" && t!=null && t!=""){
			
			$scope.setLoading();
			
			$http({
							url:getPath()+"/wsyyt/dwbjhjqccontroller/tj",
							contentType:"text/html;charset=utf-8",
							method:'post',
							params:{x:x,z:z,t:t,g:g}				
						})
					.then(function(res) {
					$(" input[ type='text' ] ").val("");
						$scope.setLoading();
									layer.msg('提示：'+res.data.msg);	
					});
				/* 	 $.ajax({
							url : getPath()+'/wsyyt/dwbjhjqccontroller/tj',
							method : 'post',
							dataType : 'JSON',
							data: {'x':x,'z':z,'g':g,'t':t,},
							success : function(res) {
							$scope.setLoading();
									layer.msg('提示：'+res.msg);	
									window.setTimeout("window.location.reload();",1500);		  
							}
					}); */	
			}else{
				layer.alert("您还有遗漏的信息哦！");
			}
		};
	
			$scope.hfjcclick=function() {
			var x=$("#XINGMINGh").val();
			var z=$("#ZJHMh").val();
			var g=$("#GRZHh").val();
			var t=$("#date2").val();
			if(x!="" && x!=null && z!=null && z!="" && g!=null && g!="" && t!=null && t!=""){
			$scope.setLoading();
				$http({
							url:getPath()+"/wsyyt/dwbjhjqccontroller/hf",
							contentType:"text/html;charset=utf-8",
							method:'post',
							params:{x:x,z:z,t:t,g:g}				
						})
					.then(function(res) {
					
						$scope.setLoading();
						$(" input[ type='text' ] ").val("");
									layer.msg('提示：'+res.data.msg);	
					});
					/*  $.ajax({
							url : getPath()+'/wsyyt/dwbjhjqccontroller/hf',
							method : 'post',
							dataType : 'JSON',
							data: {'x':x,'z':z,'g':g,'t':t,},
							success : function(res) {
							$scope.setLoading();
									layer.msg('提示：'+res.msg);		
									window.setTimeout("window.location.reload();",1500);
							}
					});	 */
			}else{
				layer.alert("您还有遗漏的信息哦！");
			}
		};
			$scope.submit=function() {
		
			var XINGMING=$("#XINGMING").val();
			var ZJHM=$("#ZJHM").val();
			var SJHM=$("#SJHM").val();
			var GRJCJS=$("#GRJCJS").val();
			var GRJCBL=$("#GRJCBL").val();
			var DWJCBL=$("#DWJCBL").val();
			var GRZH=$("#GRZH").val();
			if(SJHM!="" && SJHM!=null && SJHM.length==11){
			 $scope.setLoading();
			 	$http({
							url:getPath()+"/wsyyt/dwbjhjqccontroller/qrbj",
							contentType:"text/html;charset=utf-8",
							method:'post',
							params:{XINGMING:XINGMING,GRZH:GRZH,SJHM:SJHM,GRJCJS:GRJCJS,GRJCBL:GRJCBL,DWJCBL:DWJCBL,ZJHM:ZJHM}				
						})
					.then(function(res) {
						$scope.setLoading();
									layer.msg('提示：'+res.data.msg);	
					});
				/* $.ajax({
							url : getPath()+'/wsyyt/dwbjhjqccontroller/qrbj',
							method : 'post',
							dataType : 'JSON',
							data: {'XINGMING':XINGMING,'GRZH':GRZH,'SJHM':SJHM,'GRJCJS':GRJCJS,'GRJCBL':GRJCBL,'DWJCBL':DWJCBL,'ZJHM':ZJHM,},
							success : function(res) {
							 $scope.setLoading();
									layer.msg('提示：'+res.msg);		
										window.setTimeout("window.location.reload();",1500);
							}
					});	 */
			}else{
				layer.alert("手机号码不满足十一位");
			};
			 
		};
		    $scope.hjxznr=function(){
		  
		    var xingming=$("#xingming").val();
		   var zjhm=$("#zjhm").val();
			var dwjce=$("#dwjce").val();
			var grjce=$("#grjce").val();
			var jcksny=$("#jcksny").val();
			var sjhm=$("#sjhm").val();
			var dwyx=$("#dwyx").val();
			var jtysr=$("#jtysr").val();
			var gddhhm=$("#gddhhm").val();
			var zjlx=$("#zjlx").val();
			var hyzk=$("#hyzk").val();
			var zy=$("#zy").val();
			var zc=$("#zc").val();
			var zw=$("#zw").val();
			var xl=$("#xl").val();
			var jtzz=$("#jtzz").val();
			if(xingming!="" && zjhm!=""&& dwjce!=""&& grjce!=""&& jcksny!=""&& sjhm!=""&& dwyx!=""&& jtysr!=""&& gddhhm!=""){
			 $scope.setLoading();
			 	$http({
							url:getPath()+"/wsyyt/dwbjhjqccontroller/hjxz",
							contentType:"text/html;charset=utf-8",
							method:'post',
							params:{xingming:xingming,zjhm:zjhm,dwjce:dwjce,grjce:grjce,jcksny:jcksny,sjhm:sjhm,dwyx:dwyx,jtysr:jtysr,gddhhm:gddhhm,zjlx:zjlx,hyzk:hyzk,zy:zy,zc:zc,zw:zw,xl:xl,jtzz:jtzz}				
						})
					.then(function(res) {
						$scope.setLoading();
						$(" input[ type='text' ] ").val("");
									layer.msg('提示：'+res.data.msg);	
					});
					/*  $.ajax({
							url : getPath()+'/wsyyt/dwbjhjqccontroller/hjxz',
							method : 'post',
							dataType : 'JSON',
							data: {'xingming':xingming,'zjhm':zjhm,'dwjce':dwjce,'grjce':grjce,'jcksny':jcksny,'sjhm':sjhm,'dwyx':dwyx,'jtysr':jtysr,'gddhhm':gddhhm,'zjlx':zjlx,'hyzk':hyzk,'zy':zy,'zc':zc,'zw':zw,'xl':xl,'jtzz':jtzz},
							success : function(res) {
							 
								layer.msg('提示：'+res.msg);	
								$scope.setLoading();
								window.setTimeout("window.location.reload();",1500);
								 
								  
							}
					});	 */
			}else{
				layer.msg("您还有遗漏的信息哦！");
			};
		    }
		    	//停止缴存操作
		     function tz(index) {	
    		    	var cc=($scope.selPage-1)*20+index+1;
           			  $scope.hjqcbj1 = true;
	     			  $scope.myVar = false;
	     			  $scope.hfjc = true;
	     			  $scope.xz = true;	
	     			  $scope.bj = true;	
					$http({
							url:getPath() + "/wsyyt/dwbjhjqccontroller/tzjcbj",
							contentType:"text/html;charset=utf-8",
							method:'post',
							params:{GRZH:$scope.data[cc-1].GRZH}				
						})
					.then(function(res) {
						var data = res.data.data;
						$.each(data[0], function(key, value) {
							$("#" + key+"t").val(value || "");
						});	
					});
     			 }; 
     			 //恢复缴存菜单中的操作
     			  function hf(index) { 
    		    	var cc=($scope.selPage-1)*20+index+1;
           			  $scope.hjqcbj1 = true;
	     			  $scope.myVar = true;
	     			  $scope.hfjc = false;
	     			  $scope.xz = true;	
	     			  $scope.bj = true;	
					$http({
							url:getPath() + "/wsyyt/dwbjhjqccontroller/hfjcbj",
							contentType:"text/html;charset=utf-8",
							method:'post',
							params:{GRZH:$scope.data2[cc-1].GRZH}				
						})
					.then(function(res) {
						var data = res.data.data;
						$.each(data[0], function(key, value) {
							$("#" + key+"h").val(value || "");
						});	
					});
     			 }; 
     			 //汇缴编辑菜单
     			   function hjbj() { 
     			   $scope.setLoading();
		      		$scope.hjqcbj1 = false;
					$scope.myVar = true;
					$scope.xz = true;
					$scope.hfjc = true;	
					$scope.bj = true;
					$http({
				url:getPath() + "/wsyyt/dwbjhjqccontroller/test1",
				contentType:"text/html;charset=utf-8",
				method:'post',
				params:$scope.params,	
			})
					.then(
					
							function(res) {
							   $scope.setLoading();
								$scope.data = res.data.data;//自己打断点看格式:[{},{}]
								a = res.data.CNT;
	 							feny($scope.data);
  });				
				}
				//汇缴新增菜单
				  function hjxz() {
					$scope.hjqcbj1 = true;
					$scope.xz = false;
					$scope.myVar = true;
					$scope.bj = true;
					$scope.hfjc = true;	
					$http({
							url:getPath() + "/wsyyt/dwbjhjqccontroller/xlhx",
							contentType:"text/html;charset=utf-8",
							method:'post',
							//params:{GRZH:$scope.data[index].GRZH,JCQK:$scope.data[index].JCQK}				
						})
					.then(
					
							function(res,res1,res2,res3,res4) {
								
								$scope.data5 = res.data.data;//自己打断点看格式:[{},{}]这是婚姻状况
								$scope.data6 = res.data.data1;//自己打断点看格式:[{},{}]这是职业
								$scope.data7 = res.data.data2;//自己打断点看格式:[{},{}]这是职称
								$scope.data8 = res.data.data3;//自己打断点看格式:[{},{}]这是职称
								$scope.data9 = res.data.data4;//自己打断点看格式:[{},{}]这是职称
								
								
								
								 
    
					});
     			 };
     			 //汇缴编辑编辑操作
     			 function hjbj1(index) {	
           			var cc=($scope.selPage-1)*20+index+1;
           			$scope.hjqcbj1 = true;
					$scope.myVar = true;
					$scope.xz = true;
					$scope.hfjc = true;
					$scope.bj = false;
					$http({
							url:getPath() + "/wsyyt/dwbjhjqccontroller/bj",
							contentType:"text/html;charset=utf-8",
							method:'post',
							params:{GRZH:$scope.data[cc-1].GRZH,JCQK:$scope.data[cc-1].JCQK,XINGMING:$scope.data[cc-1].XINGMING,ZJHM:$scope.data[cc-1].ZJHM}				
						})
					.then(function(res) {
						var data = res.data.data;
						$.each(data[0], function(key, value) {
							$("#" + key).val(value || "");
						});	
					});
     			 };   
     			 //停止缴存菜单
     			 function tzjc1() { 
     			 $scope.setLoading();
     			  $scope.hjqcbj1 = true;
     			  $scope.myVar = false;
     			   $scope.bj = true;	
     			  $scope.hfjc = true;	
     			  $scope.xz = true;	
			$http({
				url:getPath() + "/wsyyt/dwbjhjqccontroller/test2",
				dataType:'Json',
				method:'post',
			})
					.then(
							function(res) {
							$scope.setLoading();
								$scope.data1 = res.data.data;//自己打断点看格式:[{},{}]
									$scope.names="";
									$scope.selPage="";
									$scope.selectPage="";
									$scope.pages="";
									$scope.page="";
									$scope.pageList="";
									layer.msg('提示：'+res.data.msg);		
								$scope.pageSize = 20;//设置显示行数
      $scope.pages1 = Math.ceil($scope.data1.length / $scope.pageSize); //分页数
      $scope.pages=$scope.pages1;
      $scope.newPages = $scope.pages1 > 5 ? 5 : $scope.pages1;
      $scope.pageList = [];
      $scope.selPage = 1;
      //设置表格数据源(分页)
      $scope.setData= function () {
        $scope.names1 = $scope.data1.slice(($scope.pageSize * ($scope.selPage - 1)), ($scope.selPage * $scope.pageSize));//通过当前页数筛选出表格当前显示数据
      }
      $scope.names1 = $scope.data1.slice(0, $scope.pageSize);
      //分页要repeat的数组
      for (var i = 0; i < $scope.newPages; i++) {
        $scope.pageList.push(i + 1);
      }
      //打印当前选中页索引
      $scope.selectPage = function (page) {
      
        //不能小于1大于最大
        if (page < 1 || page > $scope.pages1) return;
      
        //最多显示分页数5
        if (page >2) {
          //因为只显示5个页数，大于2页开始分页转换
          var newpageList = [];
          for (var i = (page - 3) ; i < ((page + 2) > $scope.pages1 ? $scope.pages1 : (page + 2)) ; i++) {
            newpageList.push(i + 1);
          }
          $scope.pageList = newpageList;
        }
         else if (page ==1||page==2) {
          //因为只显示5个页数，大于2页开始分页转换
           if($scope.pages1>4){
          //因为只显示5个页数，大于\2页开始分页转换
          var newpageList = [];
          for (var i = 1 ; i < 6; i++) {
            newpageList.push(i);
          }
        }else{
         for (var i = 1 ; i < $scope.pages1+1; i++) {
            newpageList.push(i);
          }
          $scope.pageList = newpageList;
        };
        }
        $scope.selPage = page;
        $scope.setData();
        $scope.isActivePage(page);
        console.log("选择的页:" + page);
      };
      //设置当前选中页样式
      $scope.isActivePage = function (page) {
        return $scope.selPage == page;
      };
      //上一页
      $scope.Previous = function () {
        $scope.selectPage($scope.selPage - 1);
      }
      //下一页
      $scope.Next = function () {
        $scope.selectPage($scope.selPage + 1);
        var a;
      };
        $scope.Sy = function () {
        $scope.selectPage(1);
      };
         $scope.Wy = function () {
        $scope.selectPage( $scope.pages1);
     					 };		
					});
     			 };  
     			 //恢复菜单
     			   function hftj1() {
     			  $scope.setLoading();
     			  $scope.hjqcbj1 = true;
     			  $scope.myVar = true;
     			  $scope.hfjc = false;
     			  $scope.xz = true;	
     			  $scope.bj = true;	
			$http({
				url:getPath() + "/wsyyt/dwbjhjqccontroller/test3",
				contentType:"text/html;charset=utf-8",
				method:'post',
			})
					.then(
							function(res111) {
							 	$scope.setLoading();
								layer.msg(res111.data.msg);
								$scope.data2 = res111.data.data;//自己打断点看格式:[{},{}]
								
								$scope.pageSize = 20;//设置显示行数
      $scope.pages2 = Math.ceil($scope.data2.length / $scope.pageSize); //分页数
      $scope.newPages = $scope.pages2 > 5 ? 5 : $scope.pages2;
      $scope.pageList = [];
      $scope.selPage = 1;
      //设置表格数据源(分页)
      $scope.setData= function () {
        $scope.names2 = $scope.data2.slice(($scope.pageSize * ($scope.selPage - 1)), ($scope.selPage * $scope.pageSize));//通过当前页数筛选出表格当前显示数据
      }
      $scope.names2 = $scope.data2.slice(0, $scope.pageSize);
      //分页要repeat的数组
      for (var i = 0; i < $scope.newPages; i++) {
        $scope.pageList.push(i + 1);
      }
      //打印当前选中页索引
      $scope.selectPage = function (page) {
      
        //不能小于1大于最大
        if (page < 1 || page > $scope.pages2) 
        return;
      
        //最多显示分页数5
        if (page >2) {
          //因为只显示5个页数，大于2页开始分页转换
          var newpageList = [];
          for (var i = (page - 3) ; i < ((page + 2) > $scope.pages ? $scope.pages : (page + 2)) ; i++) {
            newpageList.push(i + 1);
          }
          $scope.pageList = newpageList;
        }
         else if (page ==1||page==2) {
          //因为只显示5个页数，大于2页开始分页转换
          
         if($scope.pages2>4){
          //因为只显示5个页数，大于\2页开始分页转换
          var newpageList = [];
          for (var i = 1 ; i < 6; i++) {
            newpageList.push(i);
          }
        }else{
         for (var i = 1 ; i < $scope.pages2+1; i++) {
            newpageList.push(i);
          }
          $scope.pageList = newpageList;
        };
        }
        $scope.selPage = page;
        $scope.setData();
        $scope.isActivePage(page);
        console.log("选择的页:" + page);
      };
      //设置当前选中页样式
      $scope.isActivePage = function (page) {
        return $scope.selPage == page;
      };
      //上一页
      $scope.Previous = function () {
        $scope.selectPage($scope.selPage - 1);
      }
      //下一页
      $scope.Next = function () {
        $scope.selectPage($scope.selPage + 1);
        var a;
      };
        $scope.Sy = function () {
        $scope.selectPage(1);
      };
         $scope.Wy = function () {
        $scope.selectPage( $scope.pages);
     					 };		
	 });
    };
		   
		 $scope.selPage;
		 $index=1;
		 $scope.hjqcbj1=false;
		 $scope.xz = true;
		 $scope.myVar = true;
		 $scope.hfjc = true;	
		 $scope.bj = true;	
		 $scope.setLoading();
			$http({
				url:getPath() + "/wsyyt/dwbjhjqccontroller/test1",
				method : 'post',
				dataType : 'JSON',
				params:$scope.params,	
			})
					.then(
					//这是汇缴清澈编辑的默认执行查询
							function(res) {
								$scope.data = res.data.data;
								$scope.setLoading();
									$scope.names="";
									$scope.selPage="";
									$scope.selectPage="";
									$scope.pages="";
									$scope.page="";
									$scope.pageList="";
									layer.msg('提示：'+res.data.msg);		
								a = res.data.CNT;
    							feny($scope.data);
   		//查询
   		    	$scope.chaxun = function () {
    			$scope.setLoading();
       			$scope.params={ZJHM:$scope.zjc,XINGMING:$scope.xmc};
       			$index=1;
				$scope.hjqcbj1=false;
				$scope.xz = true;
				$scope.myVar = true;
				$scope.hfjc = true;	
				$scope.bj = true;	
				
			$http({
				url:getPath() + "/wsyyt/dwbjhjqccontroller/test1",
				contentType:"text/html;charset=utf-8",
				method:'post',
				params:$scope.params,	
			})
					.then(
							function(res) {
								$scope.data = res.data.data;//自己打断点看格式:[{},{}]
								$scope.setLoading();
									$scope.names="";
									$scope.selPage="";
									$scope.selectPage="";
									$scope.pages="";
									$scope.page="";
									$scope.pageList="";
									layer.msg('提示：'+res.data.msg);			
								a = res.data.CNT;
								 feny($scope.data);
    
   
    
    
    
    //编辑			
    			 $scope.tzjcbj11 = tz;
    		     $scope.hfjcbj11 = hf;
		     	 $scope.hjqcbj = hjbj;
     			 $scope.hjqcxz = hjxz;
				 $scope.bj111 =hjbj1;
     			 $scope.tzjc = tzjc1;
     			 $scope.ryhftj = hftj1;
  });
       			
 	}
    
    
    
    //编辑			
    			 $scope.tzjcbj11 = tz;
    		     $scope.hfjcbj11 = hf;
		     	 $scope.hjqcbj = hjbj;
		         $scope.hjqcxz =hjxz;
				 $scope.bj111 = hjbj1;
     			 $scope.tzjc = tzjc1;
     			 $scope.ryhftj = hftj1;
  });				
});
	</script>
	<script src="../../../layui/jquery-3.2.1.min.js" charset="utf-8"></script>
	<script type="text/javascript">
		
		
	/* 	$("#hjxznr").click(function() {
		$scope.setLoading();
			var xingming=$("#xingming").val();
			var zjhm=$("#zjhm").val();
			var dwjce=$("#dwjce").val();
			var grjce=$("#grjce").val();
			var jcksny=$("#jcksny").val();
			var sjhm=$("#sjhm").val();
			var dwyx=$("#dwyx").val();
			var jtysr=$("#jtysr").val();
			var gddhhm=$("#gddhhm").val();
			var zjlx=$("#zjlx").val();
			var hyzk=$("#hyzk").val();
			var zy=$("#zy").val();
			var zc=$("#zc").val();
			var zw=$("#zw").val();
			var xl=$("#xl").val();
			var jtzz=$("#jtzz").val();
			if(xingming!="" && zjhm!=""&& dwjce!=""&& grjce!=""&& jcksny!=""&& sjhm!=""&& dwyx!=""&& jtysr!=""&& gddhhm!=""){
					 $.ajax({
							url : getPath()+'/wsyyt/dwbjhjqccontroller/hjxz',
							method : 'post',
							dataType : 'JSON',
							data: {'xingming':xingming,'zjhm':zjhm,'dwjce':dwjce,'grjce':grjce,'jcksny':jcksny,'sjhm':sjhm,'dwyx':dwyx,'jtysr':jtysr,'gddhhm':gddhhm,'zjlx':zjlx,'hyzk':hyzk,'zy':zy,'zc':zc,'zw':zw,'xl':xl,'jtzz':jtzz,},
							success : function(res) {
							
								layer.msg('提示：'+res.msg);		
							}
					});	
			}else{
				layer.alert("您还有遗漏的信息哦！");
			};
		}); */
		
	</script>
	<script src="../../../layui/layui.js" charset="utf-8"></script>
	<script type="text/javascript">
layui.use(['form', 'layedit', 'laydate'], function(){
  var form = layui.form
  ,layer = layui.layer
  ,layedit = layui.layedit
  ,laydate = layui.laydate;
 
  //日期
  laydate.render({
    elem: '#date'
  });
  laydate.render({
    elem: '#date1'
  });
  laydate.render({
    elem: '#dat'
  });
  laydate.render({
    elem: '#date2'
  });
});
</script>
</body>
</html>